package cn.tk.model.pojo.mr.engine;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by denglw on 2021/8/7.<br/>
 * Desc: 实体节点澄清明细
 */
@Data @NoArgsConstructor
public class ClarifyItem {

    /**
     * 实体id
     */
    private Long entityId;

    /**
     * 实体码
     */
    private String entityCode;

    /**
     * 已经澄清的次数
     */
    private int clarifyNum;

    /**
     * 是否已经被澄清
     */
    private boolean clarified;

    /**
     * 已经澄清的具体情况
     */
    private List<ClarifyValue> clarifyValues;

    @Data @NoArgsConstructor
    public static class ClarifyValue {
        /**
         * 澄清的实体值id
         */
        private Long valueId;

        /**
         * 澄清的具体实体值
         */
        private String content;

        public ClarifyValue(Long valueId, String content) {
            this.valueId = valueId;
            this.content = content;
        }
    }

}
